=20pt =20pt =20pt =2in =1


NAME


fig2MF --- convert Fig code to mfpic METAFONT macro code


=


SYNOPSIS


fig2MF [options] [files]


=


DESCRIPTION


= With <#76#>fig2MF<#76#><#29#><#29#>, any tool that generates version 2.1 Fig graphics code (such as the X Windows drawing tool, xfig), can be used as a METAFONT font creation tool.

<#77#>fig2MF<#77#><#30#><#30#> reads from the named files or from the standard input file if no files are specified. The METAFONT code is written to the standard output file. The output is commented and formatted to aid manual editing.

<#78#>fig2MF<#78#><#31#><#31#> supports these Fig objects: <#79#><#80#>•<#80#><#79#>ellipses (and circles) <#81#><#82#>•<#82#><#81#>polylines <#83#><#84#>•<#84#><#83#>splines <#85#><#86#>•<#86#><#85#>arcs

Compound objects are recognized but not are treated specially.


OPTIONS


= All of <#88#>fig2MF<#88#><#33#><#33#>'s options take the form of <#89#>-opt=value<#89#> and can occur anywhere on the command line. The options effect the filenames that they precede on the command line, and may be repeated with different values for different files. For example,


;SPMnbsp;;SPMnbsp;;SPMnbsp;;SPMnbsp;;SPMnbsp;;SPMnbsp;;SPMnbsp;;SPMnbsp;<#90#>fig2MF -xpos=4 foo.fig -xpos=5 bar.fig ;SPMgt;foobar.fig<#90#>


sets the xpos value to 4 for the file <#91#>foo.fig<#91#>, and sets the xpos value to 5 for the file <#92#>bar.fig<#92#>. All of the other options take their default values. The METAFONT code is written to the file <#93#>foobar.mf<#93#>.

#math16#

#tex2html_wrap_indisplay243##tex2html_wrap_indisplay244##tex2html_wrap_indisplay245#=2em#tex2html_wrap_indisplay246#

The x, y coordinate and scaling factors are arbitrary and should be adjusted to fit both the Fig generating tool and the desired size of the font.


FILES


= graphbase.mf --- mfpic METAFONT macros.


DIAGNOSTICS


= <#96#>fig2MF<#96#><#43#><#43#> complains about inaccessiable files, malformed objects and input that is not in Fig version 2.1 format.


BUGS


= <#98#><#99#>•<#99#><#98#>Text objects and EPS boxes are ignored.

<#100#><#101#>•<#101#><#100#>There is no attempt to determine the figure's bounding box.

<#102#><#103#>•<#103#><#102#>Arrowed and non-solid lines styles are not supported.


SEE ALSO


= Thomas Leathrum, <#65#>Pictures in TEX<#44#><#44#> with METAFONT<#65#>

bm2font(1), xfig(1), fig(4)


AUTHOR


= Anthony Starks